#ifndef __DMA_H
#define __DMA_H

#include "stm32f10x.h"

#define DMA_CLK     RCC_AHBPeriph_DMA1
#define DMA_CHANNEL DMA1_Channel1
#define DMA_FLAG_TC DMA1_FLAG_TC1

void UserDMA_Init(uint32_t AddrA, uint32_t AddrB, uint16_t size);
void UserDMA_Transfer(void);

#endif // !__DMA_H
